package classdemo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-07-05
 * Time: 20:12
 */
public class Test {
    public static void main(String[] args) {
        //手动装箱
        int a = 10;
        a = Integer.valueOf(a);
        System.out.println(a);

        //自动装箱
        Integer b = 20;
        System.out.println(b);


        //手动拆箱
        Integer c = 30;
       int c1 = c.intValue();
        System.out.println(c1);

       //自动拆箱
        int c2 = c;
        System.out.println(c2);
    }
}
